-- GENERATED SPELL FOR [Northspring Roguefeather] --


function spell0_5363(pUnit, Event) --@Exploit Weakness,n/a--
pUnit:FullCastSpellOnTarget(6595,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5363', 0, 1)
end

function spell1_5363(pUnit, Event) --@Flow of the Northspring,Heal--
pUnit:FullCastSpellOnTarget(11014,pUnit)
pUnit:RegisterEvent('Sorts_5363', 15000, 1)
end

function spell2_5363(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_5363', 593, 1)
end

function Sorts_5363(pUnit, Event)
local choix_sorts_5363 = math.random(0, 2)
if choix_sorts_5363 == 0 then
pUnit:RegisterEvent('spell0_5363', 1, 1)
end
if choix_sorts_5363 == 1 then
pUnit:RegisterEvent('spell1_5363', 1, 1)
end
if choix_sorts_5363 == 2 then
pUnit:RegisterEvent('spell2_5363', 1, 1)
end
end

function mob5363_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5363', math.random(1500, 3000), 1)
end

function mob5363_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5363_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5363_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5363, 1, 'mob5363_Action')
RegisterUnitEvent(5363, 2, 'mob5363_Leave')
RegisterUnitEvent(5363, 3, 'mob5363_Kill')
RegisterUnitEvent(5363, 4, 'mob5363_Die')
